]> dgit.raspbian.org Git - gnome-shell.git/commit
st: Use blur node to render shadow pipeline
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 10 Dec 2020 15:47:23 +0000 (12:47 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 15 Dec 2020 20:43:20 +0000 (17:43 -0300)
commite59069c012adc66822d8584001f6ca0e55b938fd
tree9948189ea0cd7148f76ceb0b96072bbe4c945fa2
parent80a5b55a7afff697ddb53afb13b583d3253520a2
st: Use blur node to render shadow pipeline

It is generally faster than downloading the texture, blurring
with the CPU, and uploading the blurred texture. Notice that
'n_values' is calculated differently from the blur_pixels()
function; that's because it needs to match Clutter's blur
shader interpretation of sigma [1].

[1] https://gitlab.gnome.org/GNOME/mutter/-/blob/master/clutter/clutter/clutter-blur.c#L89

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1539>
src/st/st-private.c